Enter a type and click search.




Results for Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\Collection

File: vendor/magento/module-sales/etc/di.xml

<type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
    <arguments>
        <argument name="collections" xsi:type="array">
            <item name="sales_order_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Grid\Collection
            </item>
            <item name="sales_order_invoice_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\Collection
            </item>
            <item name="sales_order_shipment_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Shipment\Grid\Collection
            </item>
            <item name="sales_order_creditmemo_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Creditmemo\Grid\Collection
            </item>
            <item name="sales_order_view_invoice_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Invoice\Orders\Grid\Collection
            </item>
            <item name="sales_order_view_shipment_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Shipment\Order\Grid\Collection
            </item>
            <item name="sales_order_view_creditmemo_grid_data_source"
                  xsi:type="string">
                Magento\Sales\Model\ResourceModel\Order\Creditmemo\Order\Grid\Collection
            </item>
        </argument>
    </arguments>
</type>

This is a type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This configuration tells the Object Manager that when a user wants a Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory object that the following arguments should be used in the foo object's constructor.

  • $collections = [...items...];

File: vendor/magento/module-sales/etc/di.xml

<virtualType name="Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\Collection"
             type="Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult">
    <arguments>
        <argument name="mainTable" xsi:type="string">
            sales_invoice_grid
        </argument>
        <argument name="resourceModel" xsi:type="string">
            Magento\Sales\Model\ResourceModel\Order\Invoice
        </argument>
    </arguments>
</virtualType>

This is a virtual type configuration.

This configuration is for the base area. Base area configurations will apply to all the sub-applications.

This virtualType configuration tells the Object Manager when a user wants a virtual Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\Collection object that it should return a Magento\Framework\View\Element\UiComponent\DataProvider\SearchResult object.

This configuration tells the Object Manager that when a user wants a Magento\Sales\Model\ResourceModel\Order\Invoice\Grid\Collection object that the following arguments should be used in the foo object's constructor.

  • $mainTable = "sales_invoice_grid";
  • $resourceModel = "Magento\Sales\Model\ResourceModel\Order\Invoice";